How to select data using hinernate